package com.wjy.sfhcore.util;

import com.facebook.common.util.ByteConstants;

public class ConstantUtil {

    /**
     * 列表动画时间（单位：毫秒）
     */
    public static final long LIST_ANIMATION_TIME = 10;

    /**
     * 分页每页数据条数
     */
    public static final int PAGE_SIZE = 10;

    /**
     * 当前页下标TAG
     */
    public static final String PAGE_INDEX = "pageIndex";

    /**
     * IDTag
     */
    public static final String ID = "id";

    /**
     * 信息Tag
     */
    public static final String INFO = "info";

    /**
     * 数据Tag
     */
    public static final String DATA = "data";

    private static final int MAX_HEAP_SIZE = (int) Runtime.getRuntime().maxMemory();

    public static final int MAX_DISK_CACHE_SIZE = 40 * ByteConstants.MB;
    public static final int MAX_MEMORY_CACHE_SIZE = MAX_HEAP_SIZE / 4;
}
